package project;
public class CallBilling {

    public double calculateCallCost(final int duration) {
        double cost = 0.0;
        if (duration <= 20) {
            cost = duration * 0.05;
        } else {
            cost = 1.00 + (duration - 20) * 0.10;
        }
        return cost;
    }


    public static void main(String[] args) {
        CallBilling callBilling = new CallBilling();
        double cost1 = callBilling.calculateCallCost(15);
        System.out.println("Cost for a 15-minute call: $" + cost1);

        double cost2 = callBilling.calculateCallCost(25);
        System.out.println("Cost for a 25-minute call: $" + cost2);
    }
}